package com.routz.bitblog.blog.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author routz
 * @since 2019-05-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    private String name;

    private String password;

    private String salt;

    private String tel;

    private LocalDateTime lastLoginTime;

    private String ip;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Integer status;

    private LocalDateTime unlockTime;

    private BigDecimal balance;

    private Integer liked;

    private Integer fans;


}
